package com.bwie.common.domain;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * @className: User
 * @Description: TODO
 * @version: v1.８.0
 * @author: 刘鑫
 * @date: 2025/8/24 11:16
 */
@Data
public class User {
    //用户id
    private Integer userId;
    //用户名称
    @NotBlank(message = "用户名称不能为空")
    @Size(min = 8,message = "用户名称不能少于8位")
    private String userName;
    //密码
    @NotBlank(message = "密码不能为空")
    @Size(min = 6,message = "密码不能少于6位")
    private String userPassword;
    //手机号
    private String userPhone;
    //用户微信名称
    private String userWechat;
    //用户积分余额
    private Integer userIntegral;
}
